package com.jumi.microservice.dto.taobao;

import com.jumi.microservice.common.page.PageDomain;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author Dirk
 * @Date 2021-01-11 16:18
 */
public class SearchRequest extends PageDomain {
    private static final long serialVersionUID = -5785110948617943778L;

    @ApiModelProperty("搜索关键词，和类目至少填一项")
    private String keyword;

    @ApiModelProperty("商品筛选-后台类目ID用,分割，最大10个, 和关键词至少填一项")
    private String itemCats;

    @ApiModelProperty("排序_des（降序），排序_asc（升序），销量（total_sales），" +
            "淘客佣金比率（tk_rate）， 累计推广量（tk_total_sales），" +
            "总支出佣金（tk_total_commi），价格（price）")
    private String sort;

    @ApiModelProperty("优惠券筛选-是否有优惠券。true表示该商品有优惠券，false或不设置表示不限")
    private Boolean hasCoupon;

    @ApiModelProperty(value = "ip参数影响邮费获取，如果不传或者传入不准确，邮费无法精准提供", hidden = true)
    private String ip;

    @ApiModelProperty("商品筛选-是否包邮。true表示包邮，false或不设置表示不限")
    private Boolean needFreeShipment;

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getItemCats() {
        return itemCats;
    }

    public void setItemCats(String itemCats) {
        this.itemCats = itemCats;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public Boolean getHasCoupon() {
        return hasCoupon;
    }

    public void setHasCoupon(Boolean hasCoupon) {
        this.hasCoupon = hasCoupon;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Boolean getNeedFreeShipment() {
        return needFreeShipment;
    }

    public void setNeedFreeShipment(Boolean needFreeShipment) {
        this.needFreeShipment = needFreeShipment;
    }
}
